package com.project.demo.controller;

import com.alibaba.fastjson.JSONObject;
import com.project.demo.entity.Product;
import com.project.demo.mapper.EditProductMapper;

import com.project.demo.service.editproductService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;


import javax.servlet.http.HttpSession;

@RestController
public class editproductController {
    @Autowired
    editproductService editproductService;
    @RequestMapping("/update")
    public Object update(@RequestBody Product product ) {
        return editproductService.update(product);
    }
}
